class Person(object):
    age = 33


if __name__ == '__main__':
    # c1是个类对象，Person类对象赋值给c1
    c1 = Person
    print(c1.__class__)  # <class 'type'>

    # 模拟python 解释器内存中创建一个类对象
    c2 = type('Person', (object,), {'age': 33})
    print(c2.__class__)  # <class 'type'>

    p1 = c1()
    p2 = c2()
    print(p1.__class__)  # <class '__main__.Person'>
    print(p2.__class__)  # <class '__main__.Person'>

    # type 是元类 metaclass
